﻿// =================================================================
//  Copyright (c) "David R. Guindo", Software architect
//  
//  This code is released under the terms of the Apache License, Version 2.0,
//  http://www.apache.org/licenses/LICENSE-2.0
//  
//  THIS CODE AND INFORMATION ARE PROVIDED WITHOUT WARRANTIES,
//  WITHOUT LIMITING COMMERCIAL OR PARTICULAR USE.
// =================================================================

namespace ScreenManagerDemo
{
   using System.Threading;
   using System.Windows;

   using ScreenManager;
   using ScreenManagerDemo.Views;

   /// <summary>
   ///    Interaction logic for App.xaml
   /// </summary>
   public partial class App
   {
      public App()
      {
         this.Startup += this.App_Startup;
      }

      private void App_Startup(object sender, StartupEventArgs e)
      {
         ScreenView.ShowView(new View("1"), "channel1");
         ScreenView.ShowView(new View("2"), "channel2");
         ScreenView.ShowView(new View("3"), "channel3");
         ScreenView.ShowView(new View("4"), "channel4");
         ScreenView.ShowView(new View("5"), "channel5");
         ScreenView.ShowView(new View("6"), "channel6");
         ScreenView.ShowView(new View("7"), "channel7");
         ScreenView.ShowView(new View("8"), "channel8");

         ScreenManager.Identify(3000);

         ScreenManager.TurnOff();
         Thread.Sleep(500);
         ScreenManager.TurnOn();
         Thread.Sleep(2000);
         //ScreenManager.ScreenManager.TurnEnergySaver();
         //Thread.Sleep(500);
         //ScreenManager.ScreenManager.TurnOn();
      }
   }
}